package main

import (
	"fmt"
)

func main() {

	//没有定义初始容量的数组就是切片
	member := []int{1, 2, 4, 6, 4}
	for _, v := range member {
		fmt.Println(v)
	}
	fmt.Println("------")

	l := len(member)
	fmt.Print(l)

	ints := member[2:]
	fmt.Println(ints)
	//追加切片
	member = append(member, 5, 5, 3, 43, 434)
	var ass = []int{100, 9}
	copy(ass, member)
	fmt.Printf("%v", member)
	fmt.Printf("====== %v", ass)

}
